<div id="information">
<br /><br />
<form action="addpict.php" method="post" enctype="multipart/form-data" class="form">
	 <h3 class="form_h3">Добавяне на файл</h3>
     <p><input name="img_field" type="file" id="img_field1" /></p>
	 <h3 class="form_h3">Галерия</h3>
	 <p><select name="gallery">
	 <?php
	 $sel_u = mysql_query('SELECT teacher_to FROM users WHERE username = "'.$_SESSION['username'].'"');
     $row_u = mysql_fetch_assoc($sel_u);
		 
	 $select_gal=mysql_query('SELECT * FROM gallery WHERE place = "'.$row_u['teacher_to'].'"');
	 while($row_gal=mysql_fetch_assoc($select_gal)){
	    echo '<option value="'.$row_gal[name].'">'.$row_gal[name].'</option>';
	 }
     ?>
	 </select></p>
	 <p><input type="submit" name="submit" id="submit1" value="Качи снимката" /></p>
	 </form>
<?php
   include "../php/addpict.php";
?>
</div>